package org.adorsys.aderp.om.domain;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.entity.RooJpaEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaEntity
public class SalesOrder {

    @NotNull
    @Column(name = "salesOrderKeyBk", unique = true)
    private String salesOrderKey;

    private String title;

    @NotNull
    private BigDecimal qty;

    private BigDecimal priceUnit;

    private BigDecimal total;

    private String comment;

    @NotNull
    @ManyToOne
    private Customer customer;

    private String recorder;

    @ManyToOne
    private OrgaPersonRef agencyRef;

    @ManyToOne
    private OrderCategory ordercat;
}
